import { getStorage, setStorage, removeStorage } from '@/utils'

// 设定一个独一无二的key
const TokenKey = 'ThinkJS-Token'

// 读取token
export function getToken () {
  return getStorage(TokenKey)
}

// 设置token
export function setToken (token) {
  setStorage(TokenKey, token)
}
// 删除token
export function removeToken () {
  removeStorage(TokenKey)
}
